<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .tab {
            width: 300px;
            height: 300px;
            background-color: skyblue;
        }

        .tab ul li {
            list-style: none;
            display: inline-block;
            border: 1px solid #000;
        }

        .tab div {
            width: 200px;
            height: 200px;
            background-color: lavender;
            margin: auto;
            display: none;
        }
    </style>
</head>

<body>
    <div>
        <input type="checkbox" name="" id="" class="checkAll">全选
        <br>
        <input type="checkbox" name="" id="" class="check">
        <input type="checkbox" name="" id="" class="check">
        <input type="checkbox" name="" id="" class="check">
    </div>

    <div class="tab">
        <ul>
            <li>菜单</li>
            <li>牡蛎</li>
            <li>目录</li>
            <li>得分</li>
        </ul>
        <div style="display: block;">菜单菜单菜单菜单</div>
        <div>牡蛎牡蛎牡蛎牡蛎</div>
        <div>目录目录目录目录目录</div>
        <div>得分得分得分得分</div>
    </div>
</body>
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>

<script>
    // 全选全不选
    $('.checkAll').click(function () {
        console.log($(this).prop('checked'));
        $('.check').prop('checked', $(this).prop('checked'))
    })

    $('.check').click(function () {
        if ($('.check:checked').length == $('.check').length) {
            $('.checkAll').prop('checked', true)
        } else {
            $('.checkAll').prop('checked', false)
        }
    })
</script>


<script>
    $('li').mouseover(function () {
        $('.tab div').eq($(this).index()).css('display', 'block').siblings('.tab div').css('display', 'none');
    })
</script>

</html>